﻿*Recoding variables.
RECODE V970241 (1=1) (ELSE=0) INTO V970241R.
VARIABLE LABELS  V970241R 'Contacted Rep (1 = yes, all else =0)'.
EXECUTE.
RECODE V970249 (1=1) (ELSE=0) INTO V970249R.
VARIABLE LABELS  V970249R 'Contacted Sen 1 (1 = yes, all else =0)'.
EXECUTE.
RECODE V970256A (1=1) (ELSE=0) INTO V97025AR.
VARIABLE LABELS  V97025AR 'Contacted Sen 2 (1 = yes, all else =0)'.
EXECUTE.
RECODE V970264 (1=1) (ELSE=0) INTO V970264R.
VARIABLE LABELS  V970264R 'Contacted White House (1 = yes, all else =0)'.
EXECUTE.
RECODE V970271 (1=1) (ELSE=0) INTO V970271R.
VARIABLE LABELS  V970271R 'Contacted State Leg (1 = yes, all else =0)'.
EXECUTE.
RECODE V970279 (1=1) (ELSE=0) INTO V970279R.
VARIABLE LABELS  V970279R 'Contacted Local Official (1 = yes, all else =0)'.
EXECUTE.

RECODE V970287 (1=1) (ELSE=0) INTO V970287R.
VARIABLE LABELS  V970287R 'Family encouraged contact (1 = yes, all else =0)'.
EXECUTE.
RECODE V970288 (1=1) (ELSE=0) INTO V970288R.
VARIABLE LABELS  V970288R 'Friend encouraged contact (1 = yes, all else =0)'.
EXECUTE.
RECODE V970289 (1=1) (ELSE=0) INTO V970289R.
VARIABLE LABELS  V970289R 'Employer encouraged contact (1 = yes, all else =0)'.
EXECUTE.
RECODE V970290 (1=1) (ELSE=0) INTO V970290R.
VARIABLE LABELS  V970290R 'Co-worker encouraged contact (1 = yes, all else =0)'.
EXECUTE.
RECODE V970291 (1=1) (ELSE=0) INTO V970291R.
VARIABLE LABELS  V970291R 'Worship encouraged contact (1 = yes, all else =0)'.
EXECUTE.
RECODE V970292 (1=1) (ELSE=0) INTO V970292R.
VARIABLE LABELS  V970292R 'Organization encouraged contact (1 = yes, all else =0)'.
EXECUTE.
RECODE V970293 (1=1) (ELSE=0) INTO V970293R.
VARIABLE LABELS  V970293R 'Media encouraged contact (1 = yes, all else =0)'.
EXECUTE.
RECODE V970293A (1=1) (ELSE=0) INTO V970293AR.
VARIABLE LABELS  V970293AR 'Other encouraged contact (1 = yes, all else =0)'.
EXECUTE.
RECODE V970294 (1=1) (ELSE=0) INTO V970294R.
VARIABLE LABELS  V970294R 'Ads encouraged contact (1 = yes, all else =0)'.
EXECUTE.

COMPUTE SumOfContacted=V970241R+V970249R+V97025AR+V970264R+V970271R+V970279R.
EXECUTE.
RECODE SumOfContacted (0=0) (ELSE=1) INTO ConactedDichotomized.
EXECUTE.
COMPUTE SumOfEncouraged=V970287R+V970288R+V970289R+V970290R+V970291R+V970292R+V970293R+V970293AR+
    V970294R.
EXECUTE.
COMPUTE AverageEncouraged = SumOfEncouraged/9.
VARIABLE LABELS AverageEncouraged 'Encouragement 0-1'.
EXECUTE.

RECODE V970103 (1=1) (2=1) (4=1) (3=0) (ELSE=SYSMIS) INTO PartyVsIndependent.
VARIABLE LABELS  PartyVsIndependent 'Recoded Party vs Indep (1 vs 0)'.

EXECUTE.
RECODE V960067 (9=SYSMIS) (ELSE=Copy) INTO V960067_MissingRecoded.
EXECUTE.
RECODE V960605 (0=SYSMIS) (98=SYSMIS) (99=SYSMIS) (ELSE=Copy) INTO V960605_MissingRecoded.
EXECUTE.
RECODE V960607 (98=SYSMIS) (99=SYSMIS) (ELSE=Copy) INTO V960607_MissingRecoded.
EXECUTE.
RECODE V960701 (0=SYSMIS) (88=SYSMIS) (98=SYSMIS) (99=SYSMIS) (ELSE=Copy) INTO V960701_MissingRecoded.
EXECUTE.
RECODE V960365 (0=SYSMIS) (8=SYSMIS) (9=SYSMIS) (ELSE=Copy) INTO V960365_MissingRecoded.
EXECUTE.

RECODE V960066 (1=1) (2=0) (ELSE=SYSMIS) INTO Gender.
VARIABLE LABELS  Gender 'Gender'.
EXECUTE.
RECODE V960067 (2=1) (SYSMIS=Copy) (ELSE=0) INTO Black.
VARIABLE LABELS  Black 'Black (White contrast)'.
EXECUTE.
RECODE V960067 (3=1) (SYSMIS=Copy) (ELSE=0) INTO AmerIndAlask.
VARIABLE LABELS  AmerIndAlask 'American Indian or Alaskan Native (White contrast)'.
EXECUTE.
RECODE V960067 (4=1) (SYSMIS=Copy) (ELSE=0) INTO AsianPacific.
VARIABLE LABELS  AsianPacific 'Asian or Pacific Islander (White contrast)'.
EXECUTE.
RECODE V960067 (7=1) (SYSMIS=Copy) (ELSE=0) INTO OtherRace.
VARIABLE LABELS  OtherRace 'Other Race (White contrast)'.
EXECUTE.
COMPUTE AgeDiv100=V960605_MissingRecoded/100.
VARIABLE LABELS  AgeDiv100 'Age Div100'.
EXECUTE.
COMPUTE EducationDiv100=V960607_MissingRecoded/17.
VARIABLE LABELS  EducationDiv100 'Education Div100'.
EXECUTE.
COMPUTE IncomeDiv100=(V960701_MissingRecoded-1)/23.
VARIABLE LABELS  IncomeDiv100 'Income Div100'.
EXECUTE.
COMPUTE LeftToRightIdeologyDiv100=(V960365_MissingRecoded-1)/6.
VARIABLE LABELS  LeftToRightIdeologyDiv100 'Liberal to Conservative, 0 to 1'.
EXECUTE.

COMPUTE HasAllVariables=ConactedDichotomized+AverageEncouraged+PartyVsIndependent+Gender+Black+
    AgeDiv100+EducationDiv100+IncomeDiv100+LeftToRightIdeologyDiv100.
EXECUTE.
RECODE HasAllVariables (SYSMIS=0) (ELSE=1).
EXECUTE.


*Regression shown in paper.
LOGISTIC REGRESSION VARIABLES ConactedDichotomized 
  /METHOD=ENTER AverageEncouraged PartyVsIndependent Gender Black AgeDiv100 EducationDiv100 IncomeDiv100 LeftToRightIdeologyDiv100 
  /PRINT=CI(95) 
  /CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5).

*Demographic stats.
USE ALL. 
FILTER BY HasAllVariables. 
EXECUTE. 
FREQUENCIES VARIABLES=PartyVsIndependent Gender Black V970103 
  /ORDER=ANALYSIS.
EXAMINE VARIABLES=V960701 V960607 AgeDiv100 
  /PLOT BOXPLOT STEMLEAF 
  /COMPARE GROUPS 
  /STATISTICS DESCRIPTIVES 
  /CINTERVAL 95 
  /MISSING LISTWISE 
  /NOTOTAL.
FREQUENCIES VARIABLES=ConactedDichotomized 
  /ORDER=ANALYSIS.


